import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
//导入全局样式表
import "./assets/css/global.css"
//导入图标
import "./assets/fonts/iconfont.css"
// 引入消息提示框
import {Message,MessageBox} from 'element-ui';
import {Loading} from 'element-ui';
import elementResizeDetectorMaker from "element-resize-detector";
//导入axios
import axios from "axios"
import qs from 'qs'
//引入Vue-cookies
import VueCookies from 'vue-cookies';
import * as echarts from 'echarts';
//引入日期格式化插件
import moment from "moment";

//挂载到Vue原型对象上
Vue.prototype.$qs = qs;
Vue.prototype.$axios = axios
Vue.prototype.$message = Message
Vue.prototype.$echarts = echarts
Vue.prototype.$moment = moment
//并把消息提示框挂载到全局使用
Vue.prototype.$confirm=MessageBox.confirm;
Vue.prototype.$cookie = VueCookies;
Vue.prototype.$erd = elementResizeDetectorMaker()


Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
